import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo:{},
    homeData:[],
    homeDataPlus:[],
    giftList:[],
    MiaoSha:[],
    slideList1:null,
    slideList2:null,
    slideList3_1:null,
    // slideList3_2:null,
    // slideList3_3:null,
    // slideList3_4:null,
    // slideList3_5:null,
    // slideList3_6:null,
    // slideList3_7:null,
    // slideList3_8:null,
    slideList4:null,
    slideList5:null,
    slideList6:null,
  },
  mutations: {
    setUserInfo(state,payload){
      state.userInfo = {...state.userInfo,...payload}
    },
    setHomeData(state,payload){
      state.homeData = payload
    },
    setHomeDataPlus(state,payload){
      state.homeDataPlus = payload
    },
    setMiaoSha(state,payload){
      state.MiaoSha = payload
    },
    setGiftList(state,payload){
      state.giftList = payload
    },
    setSlideList1(state,payload){
      state.slideList1 = payload
    },
    setSlideList2(state,payload){
      state.slideList2 = payload
    },
    setSlideList3_1(state,payload){
      state.slideList3_1 = payload
    },
    // setSlideList3_2(state,payload){
    //   state.slideList3_2 = payload
    // },
    // setSlideList3_3(state,payload){
    //   state.slideList3_3 = payload
    // },
    // setSlideList3_4(state,payload){
    //   state.slideList3_4 = payload
    // },
    // setSlideList3_5(state,payload){
    //   state.slideList3_5 = payload
    // },
    // setSlideList3_6(state,payload){
    //   state.slideList3_6 = payload
    // },
    // setSlideList3_7(state,payload){
    //   state.slideList3_7 = payload
    // },
    // setSlideList3_8(state,payload){
    //   state.slideList3_8 = payload
    // },
    setSlideList4(state,payload){
      state.slideList4 = payload
    },
    setSlideList5(state,payload){
      state.slideList5 = payload
    },
    setSlideList6(state,payload){
      state.slideList6 = payload
    },
  },
  actions: {
  },
  modules: {
  }
})
